summaryrefslogtreecommitdiffstats
path: root/src/core/frontend/applets/profile_select.h
blob: 76e9635354ff11666b24c524f05c9691a395f704 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#include <functional>
#include <optional>
#include "common/uuid.h"

#include "core/frontend/applets/applet.h"

namespace Core::Frontend {

class ProfileSelectApplet : public Applet {
public:
    using SelectProfileCallback = std::function<void(std::optional<Common::UUID>)>;

    virtual ~ProfileSelectApplet();

    virtual void SelectProfile(SelectProfileCallback callback) const = 0;
};

class DefaultProfileSelectApplet final : public ProfileSelectApplet {
public:
    void Close() const override;
    void SelectProfile(SelectProfileCallback callback) const override;
};

} // namespace Core::Frontend